<template>
	<DragButton :xEdge="xEdge">
		<button class="customer-button" openType="contact" plain>
			<image :src="$getImageUrl('/user_client/static/icons/customer-servicess.gif')" class="image"></image>
		</button>
	</DragButton>
</template>
<script>
	import DragButton from '@/components/dragon-dragButton/index.vue'
	export default {
		name: "picker",
		components: {
			DragButton
		},
		data() {
			return {};
		},
		// 此处定义传入的参数
		props: {
			// 显示/隐藏
			show: {
				type: Boolean,
				default: (() => {
					return true;
				})
			},
			xEdge: {
				type: Number,
				default: -15
			}
		},
		created() {},
		mounted() {},
		methods: {
			customerService() {
				if (!this.$isLogin()) {
					this.$toLogin();
					return;
				}
				this.$customerService()
			},
		},
	}
</script>
<style lang="scss" scoped>
	.customer-button {
		background-color: transparent;
		border: none;
	}

	.image {
		width: 120rpx;
		height: 115rpx;
		display: block;
	}
</style>